﻿using net8.Models.Upload;
using SqlSugar;

namespace net8.Models.XiTong
{
    /// <summary>
    /// 用户角色关系表
    /// </summary>
    public class XtUserRole : Base
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        public Guid RoleId { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(RoleId), nameof(XtRole.Id))]
        public XtRole Role { get; set; }
    }
}
